package com.gjintel.framework.res.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * @description 文件资源实体类
 * @author fengya
 * @date 2016-3-14 下午06:10:35
 */
@Entity
@Table(name = "t_sys_res_info")
@SuppressWarnings("serial")
public class Resources implements Serializable {
	private String id;
	private String exeName;//扩展名
	private String oldName;//旧文件名
	private Long fileSize;
	private String fileType;
	private String filePath;  
	private String businessId;//业务Id
	private Integer functionFlog;//功能标示

	@Column(name = "FILE_PATH", insertable = true, updatable = true)
	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Id
	@GeneratedValue(generator = "UIDGenerator")
	@GenericGenerator(name = "UIDGenerator", strategy = "org.hibernate.id.UUIDHexGenerator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "EXE_NAME", insertable = true, updatable = true)
	public String getExeName() {
		return exeName;
	}

	public void setExeName(String exeName) {
		this.exeName = exeName;
	}

	@Column(name = "OLD_NAME", insertable = true, updatable = true)
	public String getOldName() {
		return oldName;
	}

	public void setOldName(String oldName) {
		this.oldName = oldName;
	}

	@Column(name = "FILE_SIZE", insertable = true, updatable = true)
	public Long getFileSize() {
		return fileSize;
	}

	public void setFileSize(Long fileSize) {
		this.fileSize = fileSize;
	}

	@Column(name = "FILE_TYPE", insertable = true, updatable = true)
	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	@Column(name = "BUSINESS_ID", insertable = true, updatable = true)
	public String getBusinessId() {
		return businessId;
	}

	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}
	@Column(name = "FUNCTION_FLOG", insertable = true, updatable = true)
	public Integer getFunctionFlog() {
		return functionFlog;
	}

	public void setFunctionFlog(Integer functionFlog) {
		this.functionFlog = functionFlog;
	}

}
